export function mapMenuId(menuList: any[]) {
  const ids: number[] = []

  function mapMenuID(menu: any[]) {
    for (const item of menu) {
      if (item.children) {
        mapMenuID(item.children)
      } else {
        ids.push(item.id)
      }
    }
  }

  mapMenuID(menuList)
  return ids
}
